package com.mao.service.impl;

import com.mao.mapper.UserMapper;
import com.mao.pojo.User;
import com.mao.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 小毛同学
 * @version 1.0
 * @data 2022/3/4 14:44
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryById(int id) {
        return userMapper.queryById(id);
    }
}
